﻿@model sgp.Models.Banco

@{
    ViewBag.Title = "Edit";
}


<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend> Editar Banco</legend>

        @Html.HiddenFor(model => model.Id)

        <table border="0" width="35%" cellpadding="5">

            <tr>
                <td>
                    <div>
                        Nome
                    </div>
                    <div>
                    
                    @Html.EditorFor(model => model.Nome)
                    @Html.ValidationMessageFor(model => model.Nome)
                    </div>
                    
                    </td>

                <td>
                
                <div>
                    Número
                </div>
                <div>
                @Html.EditorFor(model => model.Numero)
                @Html.ValidationMessageFor(model => model.Numero)
                
                </div>
             
                </td>
           
            </tr>

</table>

            <table border="0" width="10%" cellpadding="3">
                <tr>
                    <th>
                        <input class="btn btn-success btn-small" type="submit" value="Salvar" />
                    </th>
                    <th>
                        <a class="btn btn-inverse btn-small" href="/Banco/Index" data-original-title="">
                            Voltar</a>
                    </th>
                </tr>
            </table>
    </fieldset>
}
    









@*

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>


        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Numero)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Numero)
            @Html.ValidationMessageFor(model => model.Numero)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
*@